package day4;

import java.util.Scanner;

import org.junit.Test;



public class StuTest {
	public static void main(String[] args) {
		
		
	}
	@Test
	public void test(){
//		System.out.println("请输入学生的数量：");
//		Scanner scanner = new Scanner(System.in);
//		int count = scanner.nextInt();
//		Student[] students = new Student[count];
//		for (int i = 0; i < students.length; i++) {
//			Student student = new Student();
//			System.out.println("请输入学生的id：");
//			student.id = scanner.nextInt();
//			System.out.println("请输入学生的姓名：");
//			student.name = scanner.next();
//			System.out.println("请输入学生的年龄：");
//			student.age = scanner.nextInt();
//			System.out.println("请输入学生的班级：");
//			student.className = scanner.next();
//			//将学生对象放到数组里面
//			students[i] = student; 
//		}
//		for (int i = 0; i <students.length; i++) {
//			Student student1 = students[i];
//			System.out.println("id:" + student1.id);
//			System.out.println("name:" + student1.name);
//		}
		
		Students student = new Students(1, "孙晓", "男", 18, "java1803");
		System.out.println(student.toString());
		student.study();
	}
}
